package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.UserOrderData;
import com.ecoolex.chinadutyfree.retailer.entity.UserOrderDataExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserOrderDataMapper {
    long countByExample(UserOrderDataExample example);

    int deleteByExample(UserOrderDataExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserOrderData record);

    int insertSelective(@Param("record") UserOrderData record, @Param("selective") UserOrderData.Column ... selective);

    UserOrderData selectOneByExample(UserOrderDataExample example);

    List<UserOrderData> selectByExample(UserOrderDataExample example);

    UserOrderData selectByPrimaryKey(Integer id);

    UserOrderData selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserOrderData record, @Param("example") UserOrderDataExample example, @Param("selective") UserOrderData.Column ... selective);

    int updateByExample(@Param("record") UserOrderData record, @Param("example") UserOrderDataExample example);

    int updateByPrimaryKeySelective(@Param("record") UserOrderData record, @Param("selective") UserOrderData.Column ... selective);

    int updateByPrimaryKey(UserOrderData record);

    int batchInsert(@Param("list") List<UserOrderData> list);

    int batchInsertSelective(@Param("list") List<UserOrderData> list, @Param("selective") UserOrderData.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserOrderDataExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}